<template>
  <div class="container">
    <div class="box">
      <img class="user" :src="data.avatar" alt="" />
      <h2>{{ data.author }}</h2>
      <p>{{ data.introduction }}</p>
      <div>
        <el-tooltip
          class="item"
          effect="dark"
          content="我的github"
          placement="bottom"
        >
          <img
            src="@/assets/icon/github.png"
            width="20px"
            height="20px"
            alt=""
          />
        </el-tooltip>
        <el-tooltip
          class="item"
          effect="dark"
          content="我的知乎"
          placement="bottom"
        >
          <img
            src="@/assets/icon/zhihu-square-fill.png"
            width="20px"
            height="20px"
            alt=""
          />
        </el-tooltip>
      </div>
    </div>
  </div>
</template>



<script>
export default {
  data() {
    return {
      data: "",
      value: "sd",
    };
  },
  methods: {
    getData() {
      this.$axios.post("api/blog/setting/detail").then((res) => {
        console.log(res);
        this.data = res.data;
      });
    },
  },
  created() {
    this.getData();
  },
};
</script>


<style lang="scss" scoped>
.container {

  width: 100%;
  height: 100%;
  
  .box {
    // width: 100%;
    // height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    .user {
      border-radius: 50%;
      width: 60px;
      height: 60px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3),
    }
  }
}
</style>